package com.pxx.pj.pxx.controller;

import com.pxx.pj.common.util.ShiroUtils;
import com.pxx.pj.pxx.pojo.PxxUser;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;


@Controller
public class PageController {


    @RequestMapping("doIndexUI")
    public String doIndexUI(Model model){
        PxxUser user= ShiroUtils.getUser();
        model.addAttribute("user",user);



        return "starter";
    }

//1/1    @GetMapping("/menu/doMenuUI")
//    public String doMenuUI(){
//        return "sys/menu_list";
//    }
@RequestMapping("{sss}/{global}")
    public String doglobal (@PathVariable String global){
        return "sys/"+global;
    }
@RequestMapping("doPageUI")
    public String doPageUI(){
        return "common/page";
}
@RequestMapping("doLoginUI")
public String doLoginUI(){
        return "login";
}

}

